<!DOCTYPE html>
<!--
   /******************************************************************************
     Copyright:: 2020- IBM, Inc

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
  *****************************************************************************/
-->

<html lang="en">
	<head>
		<title>Checks that a visible label exist for input elements </title>
	</head>
	<body>

<fieldset>
    <legend> TC2: No LABEL element, aria-label is used; no internal text </legend>
    <input type="text" aria-label="input2"> &Tab;
    <textarea aria-label="textarea2"></textarea>  &Tab; 
    <select aria-label="select2">
	    <option aria-selected="false" aria-label="option2"></option>
    </select>
</fieldset>

<button aria-label="Button without visible label ok"></button>

<script type="text/javascript">
//<![CDATA[
  if (typeof(OpenAjax) == 'undefined') OpenAjax = {}
  if (typeof(OpenAjax.a11y) == 'undefined') OpenAjax.a11y = {}
  OpenAjax.a11y.ruleCoverage = [
    {
      ruleId: "1204",
      passedXpaths: [
      ],
      failedXpaths: [
        "/html/body/fieldset/input",
        "/html/body/fieldset/textarea",
        "/html/body/fieldset/select"
      ]
    }
  ];
//]]>
</script>
	</body>
	</html>
